package com.itfitness.stretchcalendarview

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button

class MainActivity : AppCompatActivity() {
    private val btStretch : Button? by lazy { findViewById(R.id.bt_stretch) }
    private val btTimePeriod : Button? by lazy { findViewById(R.id.bt_timePeriod) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        btStretch?.setOnClickListener {
            startActivity(Intent(this,StretchCalendarActivity::class.java))
        }
        btTimePeriod?.setOnClickListener {
            startActivity(Intent(this,TimePeriodCalendarActivity::class.java))
        }
    }
}